#include "Kernel.h"
#include "Utils/List.h"
#include "Utils/String.h"
#include "Scheduler/Team.h"
#include "Scheduler/Process.h"
#include "Scheduler/Thread.h"


Process::Process( const char * name, Team * team )
{
	IF_PARANOID( this->signature = PROCESS_SIGNATURE );

	this->team = team;
	this->name = StringCopy( name );
}


Process::~Process()
{
	PARANOID_ASSERT( this->signature == PROCESS_SIGNATURE );
	IF_PARANOID( this->signature = NULL );

	team = NULL;
	delete name;
}
